package com.ztc.ZtcClassesPriceForSale.bean;

import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;

import com.aqgj.util.BaseEntity;
import com.ztc.ZtcClassesForSale.bean.ZtcClassesForSale;
import com.ztc.ZtcOrder.bean.ZtcOrder;

@Entity
@Table(name = "ztc_classes_price_for_sale")
public class ZtcClassesPriceForSale implements BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//

	private String distance;// è·�ç¦»

	private String price;// ä»·æ ¼

	private java.lang.Integer status;// çŠ¶æ€�ï¼š0.åœ¨å”®1.å�œå”®

	private java.lang.Integer remainSeatNumber;// åº§ä½�æ•°

	private java.lang.Integer remainChildSeatNumber;// å„¿ç«¥åº§ä½�æ•°

	private String seatInfo;// ç‰¹ä»·åº§ä½�ä¿¡æ�¯ï¼šæ ¼å¼�ï¼š(åº§ä½�å�·ï¼ŒçŠ¶æ€�ã€�å�¯å”®ï¼Œå�œå”®ï¼Œå·²å”®ã€‘ï¼Œä»·æ ¼)ä»¥é€—å�·åˆ†å‰²ï¼Œä¾‹å¦‚:'(1,0,150.00),(2,0,150.00)'

	private String fkStartClassesSiteForSaleId;// è¯¥åœ¨å”®ç�­æ¬¡ä»·æ ¼èµ·ç‚¹id

	private String fkEndClassesSiteForSaleId;// è¯¥åœ¨å”®ç�­æ¬¡ä»·æ ¼ç»ˆç‚¹id

	private String fkClassesForSaleId;// è¯¥åœ¨å”®ç�­æ¬¡ä»·æ ¼æ‰€å±žåœ¨å”®ç�­æ¬¡id

	private ZtcClassesForSale ztcClassesForSale;

	private List<ZtcOrder> ztcOrders;

	private java.lang.Integer isPreferential;

	private Integer type;

	private java.util.Date modifyTime;

	private String fkModifyUserId;
	public void setType(Integer type) {
		this.type = type;
	}

	@Transient
	public java.lang.Integer getIsPreferential() {
		return isPreferential;
	}

	public void setIsPreferential(java.lang.Integer isPreferential) {
		this.isPreferential = isPreferential;
	}

	public void setId(String value) {
		this.id = value;
	}

	public void setDistance(String value) {
		this.distance = value;
	}

	public void setPrice(String value) {
		this.price = value;
	}

	public void setStatus(java.lang.Integer value) {
		this.status = value;
	}

	public void setRemainSeatNumber(java.lang.Integer value) {
		this.remainSeatNumber = value;
	}

	public void setRemainChildSeatNumber(java.lang.Integer value) {
		this.remainChildSeatNumber = value;
	}

	public void setSeatInfo(String value) {
		this.seatInfo = value;
	}

	public void setFkStartClassesSiteForSaleId(String value) {
		this.fkStartClassesSiteForSaleId = value;
	}

	public void setFkEndClassesSiteForSaleId(String value) {
		this.fkEndClassesSiteForSaleId = value;
	}

	public void setFkClassesForSaleId(String value) {
		this.fkClassesForSaleId = value;
	}

	public void setZtcClassesForSale(ZtcClassesForSale ztcClassesForSale) {
		this.ztcClassesForSale = ztcClassesForSale;
	}

	public void setZtcOrders(List<ZtcOrder> ztcOrders) {
		this.ztcOrders = ztcOrders;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public void setFkModifyUserId(String fkModifyUserId) {
		this.fkModifyUserId = fkModifyUserId;
	}

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "id", unique = false, nullable = false, insertable = true, updatable = true, length = 32)
	public String getId() {
		return this.id;
	}

	@Column(name = "distance", unique = false, nullable = true, insertable = true, updatable = true, length = 8)
	public String getDistance() {
		return this.distance;
	}

	@Column(name = "price", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public String getPrice() {
		return this.price;
	}

	@Column(name = "status", unique = false, nullable = true, insertable = true, updatable = true, length = 4)
	public java.lang.Integer getStatus() {
		return this.status;
	}

	@Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public Integer getType() {return type;}

	@Column(name = "remain_seat_number", unique = false, nullable = true, insertable = true, updatable = true, length = 4)
	public java.lang.Integer getRemainSeatNumber() {
		return this.remainSeatNumber;
	}

	@Column(name = "remain_child_seat_number", unique = false, nullable = true, insertable = true, updatable = true, length = 4)
	public java.lang.Integer getRemainChildSeatNumber() {
		return this.remainChildSeatNumber;
	}

	@Column(name = "seat_info", unique = false, nullable = true, insertable = true, updatable = true, length = 1180)
	public String getSeatInfo() {
		return this.seatInfo;
	}

	@Column(name = "fk_start_classes_site_for_sale_id", unique = false, nullable = false, insertable = true, updatable = true, length = 32)
	public String getFkStartClassesSiteForSaleId() {
		return this.fkStartClassesSiteForSaleId;
	}

	@Column(name = "fk_end_classes_site_for_sale_id", unique = false, nullable = false, insertable = true, updatable = true, length = 32)
	public String getFkEndClassesSiteForSaleId() {
		return this.fkEndClassesSiteForSaleId;
	}

	@Column(name = "fk_classes_for_sale_id", unique = false, nullable = false, insertable = true, updatable = true, length = 32)
	public String getFkClassesForSaleId() {
		return this.fkClassesForSaleId;
	}
	@Column(name ="modify_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
	public Date getModifyTime() {
		return modifyTime;
	}
	@Column(name ="fk_modify_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
	public String getFkModifyUserId() {
		return fkModifyUserId;
	}
	@Transient
	public ZtcClassesForSale getZtcClassesForSale() {
		return ztcClassesForSale;
	}

	@Transient
	public List<ZtcOrder> getZtcOrders() {
		return ztcOrders;
	}
}
